import mountNativeElement from "./mountNativeElement"
import isFunction from "./isFunction.js"
import mountComponent from './mountComponent'
export default function mountElement(virtualDOM,container){
   if(isFunction(virtualDOM)){
    //Component 组件渲染
    mountComponent(virtualDOM,container)
   }else{
    // NativeElement 真实DOM渲染
      mountNativeElement(virtualDOM,container)
   }
   
}